#include"quesion1.h"

vector<int> quesion1::twoSum(vector<int>& nums, int target) {
    vector<int> xiabiao(2);
    int number=nums.size();
    for(int i=0;i<number;i++){
        for(int j=0;j<number;j++){
            if(nums[i]+nums[j]==target&&i!=j&&i<j){
                xiabiao[0]=i;
                xiabiao[1]=j;
            }

        }
    }
    return xiabiao;
}
